﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AUV5.Web.Testing
{
    public partial class DemoPage : PageBaseFrontend
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (base.IsVerified)
                {
                    //base.Alert("Page is login");

                    int xx = Common.PageBase.GetEnumValueByType(typeof(Common.Enum.ServiceStatus), "Active");

                    Response.Write(xx);

                }
                else
                {
                    //base.Alert("Page is not login");
                    base.SetDropDownListYear(this.DropDownList1);
                }
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Common.MailHelper mail = new Common.MailHelper();

            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(@"感谢您注册成为AUV5(唯5网)的会员。
                    <br />今后请继续关注AUV5(唯5网)。");

            mail.SendMail(this.TextBox1.Text.Trim(), "测试邮件", sb);
        }
    }
}